package com.net.xpay.common.dao.sync;

import com.net.xpay.common.domain.sync.CommonSafePayBatch;
import com.net.common.annotation.DataCommon;
import com.net.common.dao.Page;
import com.net.common.dao.PagedMapper;
import com.net.xpay.core.model.SafePayBatchSearchModel;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.time.LocalDateTime;
import java.util.List;

@DataCommon
@Repository
public interface CommonSafePayBatchMapper extends PagedMapper<Long, CommonSafePayBatch> {
    List<CommonSafePayBatch> search(@Param("searchModel") SafePayBatchSearchModel searchModel, @Param("page") Page page);

    long searchCount(@Param("searchModel") SafePayBatchSearchModel searchModel);

    long statSafePayActivePartnerCount(@Param("minEndTime") LocalDateTime minEndTime, @Param("maxEndTime") LocalDateTime maxEndTime);
}
